package com.lsz.flight_system.service;

import com.lsz.flight_system.entity.UserMessage;

import java.util.List;
import java.util.Map;

public interface UserMessageService {

    UserMessage getUserMessageByUsername(String username);

    boolean registerUserMessage(UserMessage userMessage);

    boolean delUserMessageByUsername(String username);
    //余额充值
    boolean userRecharge(String username,float money);
    //余额提现
    boolean userWithdraw(String username);

    List<UserMessage> findAllUserMessage(Map<String, Object> map);

    boolean saveUserMessage(UserMessage userMessage);

}
